module.exports = {
	table: 'uni-id-device',
	fields: [
		{
			type: 'string',
			key: 'appid',
			comment: 'DCloud appid',
		},
		{
			type: 'string',
			key: 'user_id',
			comment: '用户ID',
		},
		{
			type: 'string',
			key: 'device_id',
			comment: '设备唯一标识',
		},
		{
			type: 'string',
			key: 'ua',
			comment: 'userAgent',
		},
		{
			type: 'string',
			key: 'uuid',
			comment: '设备唯一标识(需要加密存储)',
		},
		{
			type: 'string',
			key: 'os_name',
			comment: 'ios|android|windows|mac|linux',
		},
		{
			type: 'string',
			key: 'os_version',
			comment: '操作系统版本',
		},
		{
			type: 'string',
			key: 'os_language',
			comment: '操作系统语言',
		},
		{
			type: 'string',
			key: 'os_theme',
			comment: '操作系统主题 light|dark',
		},
		{
			type: 'string',
			key: 'vendor',
			comment: '设备厂商',
		},
		{
			type: 'string',
			key: 'push_clientid',
			comment: '推送设备客户端标识',
		},
		{
			type: 'string',
			key: 'imei',
			comment: '国际移动设备识别码IMEI(International Mobile Equipment Identity)',
		},
		{
			type: 'string',
			key: 'oaid',
			comment: '移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)',
		},
		{
			type: 'string',
			key: 'idfa',
			comment: 'iOS平台配置应用使用广告标识(IDFA)',
		},
		{
			type: 'string',
			key: 'model',
			comment: '设备型号',
		},
		{
			type: 'string',
			key: 'platform',
			comment: '平台类型',
		},
		{
			type: 'number',
			key: 'create_date',
			comment: '创建时间',
		},
		{
			type: 'number',
			key: 'token_expired',
			comment: 'token_expired',
		},
		{
			type: 'number',
			key: 'last_active_date',
			comment: '最后登录时间',
		},
		{
			type: 'string',
			key: 'last_active_ip',
			comment: '最后登录IP',
		},
	],
};
